package io.github.weiranyi;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

// http://localhost:8000/product/query/1
@SpringBootApplication
@MapperScan("io.github.weiranyi.mapper")
@EnableDiscoveryClient //@EnableDiscoveryClient通用性更强；@EnableEurekaClient 将当前项目做为Eureka客户端注册到Eureka
public class ProductsApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductsApplication.class, args);
    }
}
